@charset "UTF-8";
/* 
绝对定位
1 绝对定位 清除浮动。。。了解 
2 块级元素 宽度默认 100%
  块级元素+绝对|固定定位之后 宽度 
    由内容撑开
 */
/* sass函数-混合 */
/* jd红 */
/* sass函数 声明 */
/* 头部 */
header {
  height: 40px;
  background-color: rgba(201, 21, 35, 0);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  /* logo */
  /* 登录 */
  /* 搜索框 */
}

header .logo {
  width: 70px;
  /* 使用sass函数 */
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: 0 -110px;
  /* 
    增大背景图片的响应区域 h5第五天讲解  
    1 内减模式 
    2 bg-origin和bg-clip值 content-box
    3 动态增大padding 
    */
  background-origin: content-box;
  background-clip: content-box;
  padding: 10px 6px;
}

header .login {
  width: 50px;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 13px;
}

header .search {
  /* 设置子项占父项 剩下的  宽度的比例  */
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
  padding: 5px 0;
}

header .search::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: -60px -110px;
  top: 11px;
  left: 10px;
}

header .search input {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding-left: 30px;
}

/* 轮播图 */
.slides {
  overflow: hidden;
  position: relative;
}

.slides .slides_ul {
  width: 1000%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.slides .slides_ul li {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.slides .indexer {
  position: absolute;
  bottom: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.slides .indexer li {
  float: left;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  margin-left: 5px;
  opacity: .5;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.slides .indexer .active {
  background-color: #fff;
  opacity: 1;
  -webkit-transform: scale(1.5);
          transform: scale(1.5);
}

/* 首页导航 */
nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* 换行 */
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

nav a {
  width: 25%;
  text-align: center;
  padding: 5px 0;
  color: #666;
  font-size: 14px;
}

nav a img {
  width: 50%;
  margin: 0 auto;
}

/* 掌上秒杀 */
.second_kill {
  margin-top: 5px;
}

.second_kill .second_kill_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  /* 闹钟 */
  /* 掌上秒杀 */
  /* 倒计时 */
  /*  超链接 */
}

.second_kill .second_kill_title .clock {
  width: 18px;
  height: 22px;
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: -83px -110px;
}

.second_kill .second_kill_title .second_kill_name {
  /* 使用变量 */
  color: #c91523;
}

.second_kill .second_kill_title .timer span {
  background-color: #000;
  color: #fff;
  padding: 1px;
}

.second_kill .second_kill_title .timer span:nth-child(3n) {
  background-color: #fff;
  color: #000;
}

.second_kill .second_kill_title > a {
  font-size: 14px;
  color: #c91523;
}

.second_kill .second_kill_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.second_kill .second_kill_content a {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
  font-size: 14px;
  text-align: center;
}

.second_kill .second_kill_content a .tips {
  background-color: #fdb60a;
  color: #fff;
  border-radius: 50%;
  padding: 3px 6px;
  position: absolute;
  top: 20%;
  right: 50%;
}

.second_kill .second_kill_content a .news_price {
  color: #c91523;
}

.second_kill .second_kill_content a .old_price {
  color: #666;
}

/* 主题日 */
.theme_day .theme_day_title {
  position: relative;
}

.theme_day .theme_day_title .banners_wrap {
  position: absolute;
  bottom: 5px;
  width: 100%;
}

.theme_day .theme_day_title .banners_wrap a {
  float: left;
  width: 50%;
}

.theme_day .theme_day_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.theme_day .theme_day_content a {
  width: 50%;
}

.theme_day .theme_day_content a:nth-child(-n+3) {
  width: 33.33%;
}

/* 公共标题 */
.goods_title {
  color: #c91523;
  font-weight: 600;
  padding: 5px;
}

/* 超市 */
.market .market_content a {
  float: left;
  width: 50%;
}

.market .market_content a:nth-child(3) {
  padding-bottom: 1px;
}

/* 主题街 */
.theme_stree .theme_stree_content a {
  width: 25%;
  float: left;
}

.theme_stree .theme_stree_content a:nth-child(-n+2) {
  width: 50%;
}

.theme_stree .theme_stree_content a:nth-child(5) {
  clear: both;
}

.adv {
  padding: 5px;
}

/* 品牌 推荐 */
.brand .brand_content {
  padding: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.brand .brand_content a {
  -webkit-box-flex: 3;
      -ms-flex: 3;
          flex: 3;
}

.brand .brand_content a:first-child {
  -webkit-box-flex: 4;
      -ms-flex: 4;
          flex: 4;
}

/* 猜你喜欢 */
.guess .guess_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.guess .guess_title > a {
  font-weight: normal;
  font-size: 13px;
}

.guess .guess_title > a > img {
  display: inline-block;
  width: 18px;
  vertical-align: sub;
}

.guess .guess_content ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.guess .guess_content ul li {
  padding: 10px;
  width: 50%;
  color: #666;
  /* 商品头部 */
  /* 商品的详情 */
}

.guess .guess_content ul li .guess_goods_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 5px 0;
}

.guess .guess_content ul li .guess_goods_title > span {
  color: #c91523;
}

.guess .guess_content ul li .guess_goods_title > a {
  border: 1px solid #ccc;
  font-size: 13px;
}

.guess .guess_content ul li .guess_goods_detail > img {
  width: 90%;
  margin: 0 auto;
}

.guess .guess_content ul li .guess_goods_detail > p {
  font-size: 13px;
  overflow: hidden;
  height: 36px;
  border-bottom: 1px solid pink;
}

/* 底部工具栏 */
.bottom_tool {
  margin-top: 10px;
  margin-bottom: 45px;
  background-color: #f3f5f7;
  text-align: center;
  color: #666;
  font-size: 14px;
  /* 点击加载更多 */
  /* 底部链接 */
  /* 设备 */
  /* 版权所有 */
}

.bottom_tool .more {
  border-top: 1px solid currentColor;
  padding: 10px 0;
}

.bottom_tool .btm_link {
  padding: 10px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-top: 1px solid currentColor;
}

.bottom_tool .btm_link a {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border-left: 1px solid #000;
}

.bottom_tool .btm_link a:nth-child(1) {
  border-left: none;
}

.bottom_tool .btm_devices {
  border-top: 1px solid currentColor;
  padding: 10px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.bottom_tool .btm_devices a {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.bottom_tool .btm_devices a span {
  width: 33px;
  height: 33px;
  display: inline-block;
}

.bottom_tool .btm_devices a:nth-child(1) span {
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: -120px -70px;
}

.bottom_tool .btm_devices a:nth-child(2) span {
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: -40px -70px;
}

.bottom_tool .btm_devices a:nth-child(3) span {
  background-size: 200px 200px;
  background-image: url("../images/jd-sprites.png");
  background-position: -80px -70px;
}

.bottom_tool .copyright {
  border-top: 1px solid currentColor;
  padding: 10px 0;
}

/* 尾部导航 */
footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  background-color: #fff;
  bottom: 0;
  left: 0;
  width: 100%;
}

footer a {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

footer a img {
  width: 64px;
  height: 50px;
  margin: 0 auto;
}
